/*
 * CharacterObstaclesCollision.java
 *
 * Created on January 20, 2008, 9:53 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package wisp.game;
//JFC
import com.golden.gamedev.object.collision.BasicCollisionGroup;
import com.golden.gamedev.object.collision.CollisionGroup;
import com.golden.gamedev.object.sprite.AdvanceSprite;
import java.awt.Graphics2D;
import java.awt.Dimension;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.net.*;

// GTGE
import com.golden.gamedev.*;
import com.golden.gamedev.object.*;
import com.golden.gamedev.engine.BaseLoader;
/**
 *
 * @author Solomon See
 */
public class CharacterObstaclesCollision extends CollisionGroup {
   public CharacterObstaclesCollision() {
   }

    public void collided(Sprite s1, Sprite s2) {
        CharacterSprite charSprite = (CharacterSprite) s1;
        ObstacleSprite obstacleSprite = (ObstacleSprite) s2;
        
        
        charSprite.hitObstacle(obstacleSprite);
        revertPosition1();
    }
}
